import request from '@/utils/request'

// 获取商品类型列表接口,与查询列表xiangtong
export const getTypeList = data => request.get('/vm-service/skuClass/search', { params: data })
// 获取商品类型搜索，查询的接口
export const TypeSearch = data => request.get('/vm-service/skuClass/search', { params: data })
// 删除商品类型
export const TypeDelete = classId => request.delete(`/vm-service/skuClass/${classId}`)

// 修改商品类型接口
export const changeType = data => request.put(`/vm-service/skuClass/${data.classId}`)
// 新增商品类型接口
export const addGoodType = data => request.post('/vm-service/skuClass', data)

//
//
//
// 商品搜索的接口
export const GoodSearch = data => request.get('/vm-service/sku/search', { params: data })

// 新增商品接口
export const postshoop = data => request.post('/vm-service/sku', data)

// 修改商品
export const putshoop = data => request.put(`/vm-service/sku/${data.skuId}`, data)
